import Vue from 'vue'
import App from './App'
import router from './router'
import api from './api'
import store from './store'

//全局过滤器
import './filters/actor'

//全局组件引用
import './components/global/Loading'

//事件总线
const bus = new Vue()

Vue.prototype.$bus = bus

// 图片懒加载设置
import VueLazyload from "vue-lazyload";
Vue.use(VueLazyload, {
  // 预加载高度比例
  preLoad: 1.3,
  // 尝试加载图片数量
  attempt: 5,
  // 预加载图片
  loading: "./assets/images/36.jpg"
});

//请求方法绑定到原型上
Vue.prototype.$api = api


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
